<template>
  <div>
    <header id='head_top'>
          <slot name="left"></slot>
          <slot name="search"></slot>
          <section class="head_goback">
              <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" version="1.1">
                 <polyline points="12,18 4,9 12,0" style="fill:none;stroke:rgb(255,255,255);stroke-width:2"/>
              </svg>
          </section>
          <router-link :to="userInfo? '/profile':'/login'" v-if='signinUp' class="head_login">
              <span class="login_span" >登录|注册</span>
          </router-link>
          <section class="title_head_ellipsis">
              <span class="login_span">{{headTitle}}</span>
          </section>
          <slot name="edit"></slot>
          <slot name="msite-title"></slot>
          <slot name="changecity"></slot>
          <slot name="changeLogin"></slot>
    </header>
  </div>
</template>

<script>
// 按需引入

export default {
    name:'Header',
    data(){
        return{

        }
    },
    mounted() {
        // 获取用户信息
        this.getUserInfo();
    },
    props:['signinUp','headTitle','goBack'],
    computed:{
        
    },
    methods: {
       
        
    },

}
</script>

<style >
   
</style>